import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import 'normalize.css/normalize.css'
import 'element-ui/lib/theme-chalk/index.css'
import {hasPermission} from "./utils/hasPermission";
// import {default as request} from './utils/request'
import api from './api/index'
import echarts from 'echarts'

import '@/icons' // icon
import '@/permission' // permission control
import '@/styles/index.scss' // global css

//全局的常量
// Vue.prototype.api = api
Vue.prototype.$api = api
Vue.prototype.hasPerm = hasPermission
Vue.config.productionTip = false

Vue.prototype.$echarts = echarts

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
